Skip to content

[flutter_inappwebview] Introduce flutter_inappwebview_tizen#1015

Open
JSUYA wants to merge 4 commits intoflutter-tizen:masterfrom
JSUYA:flutter_inappwebview_tizen
Open

[flutter_inappwebview] Introduce flutter_inappwebview_tizen#1015
JSUYA wants to merge 4 commits intoflutter-tizen:masterfrom
JSUYA:flutter_inappwebview_tizen

Conversation

@JSUYA
Copy link
Copy Markdown
Member

@JSUYA JSUYA commented Apr 30, 2026

Introduce flutter_inappwebview_tizen, the Tizen implementation of flutter_inappwebview.

Like webview_flutter_tizen, it is built on top of EWK (chromium-efl) and
renders offscreen via a TBM surface buffer pool. Only the surface that maps
cleanly onto the Tizen WebView is implemented; APIs that have no EWK
counterpart raise UnsupportedError / UnimplementedError.

Screenshot from 2026-04-30 15-35-21

+#1008

@JSUYA JSUYA marked this pull request as draft April 30, 2026 03:48
@JSUYA JSUYA self-assigned this Apr 30, 2026
@JSUYA JSUYA added the enhancement New feature or request label Apr 30, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the flutter_inappwebview_tizen package, providing a Tizen implementation for the flutter_inappwebview plugin using the EWK API. The implementation supports core features such as URL loading, JavaScript evaluation, and offscreen rendering via a TBM surface buffer pool. Feedback on the native C++ implementation identifies a potential memory leak regarding the management of string allocations for HTTP headers.

Comment thread packages/flutter_inappwebview/tizen/src/webview.cc
@JSUYA JSUYA force-pushed the flutter_inappwebview_tizen branch 3 times, most recently from 9214876 to 29d9cee Compare April 30, 2026 06:44
@JSUYA JSUYA force-pushed the flutter_inappwebview_tizen branch from 29d9cee to 79c335c Compare April 30, 2026 08:02
@JSUYA JSUYA marked this pull request as ready for review April 30, 2026 09:08
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the flutter_inappwebview_tizen plugin, providing a Tizen implementation for the flutter_inappwebview package. The changes include the necessary plugin infrastructure, Tizen-specific platform implementation using the EWK API, and an example application. Review feedback identified a memory leak in the touch event handling logic, a potential issue with automatic JSON decoding of JavaScript evaluation results, and a suggestion to use specific error codes in error reporting.

Comment thread packages/flutter_inappwebview/tizen/src/webview.cc
Comment thread packages/flutter_inappwebview/tizen/src/webview.cc
@JSUYA
Copy link
Copy Markdown
Member Author

JSUYA commented Apr 30, 2026

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the Tizen implementation for the flutter_inappwebview plugin, featuring offscreen rendering using the EWK API. The native C++ implementation manages WebView instances and buffer pools for texture integration. Review feedback highlights stability concerns, including race conditions in the resizing and buffer management methods, potential crashes, and resource leaks of Ecore_Evas objects. Suggestions also include ensuring one-time initialization of EWK arguments and transitioning to a multi-buffer pool to improve rendering performance.

Comment thread packages/flutter_inappwebview/tizen/src/webview.cc
Comment thread packages/flutter_inappwebview/tizen/src/webview.cc Outdated
Comment thread packages/flutter_inappwebview/tizen/src/webview.cc Outdated
Comment thread packages/flutter_inappwebview/tizen/src/webview.cc
Comment thread packages/flutter_inappwebview/tizen/src/buffer_pool.cc
Comment thread packages/flutter_inappwebview/tizen/src/webview.cc
Comment thread packages/flutter_inappwebview/tizen/src/webview.cc Outdated
@JSUYA
Copy link
Copy Markdown
Member Author

JSUYA commented Apr 30, 2026

The stabilization work applied to this task will also be applied to webview_flutter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant